package cn.bdqn.dao;

import cn.bdqn.entity.Air;

import java.sql.SQLException;
import java.util.List;


public interface AirDao {

    //增.
    Integer save(Air air) throws SQLException;
    //删.
    Integer deleteById(Integer id) throws SQLException;
    //改.
    Integer update(Air air) throws SQLException;
    //查一个(根据id)
    Air findById(Integer id) throws SQLException;
    //查多个(根据区域distructid,和分页信息查询.)
    List<Air> findByCondition(
            Integer distructId,
            Integer startIndex,
            Integer pageSize) throws SQLException;

    //查询数据的总条数
    Integer findCountByCondition(Integer distructId) throws SQLException;











}
